{% load pybb_tags %}
{% load glue_filters %}
{% if ROOT %}
    <div class='section-container close'>
{% endif %}
      <div id='forum' class='section'>
        <div class='title'>
          <h3>Forum</h3>
        </div>

        <div class='info-block' style="text-align:left">
          {% if FORUM %}
          {% glue_load_last_topics as last_topics with forum=FORUM.pk %}
          {% for topic in last_topics %}
          <p><a href="{{ topic.get_absolute_url }}">{{ topic }}</a>
          </p>
          {% endfor %}
          <div class="tail">
            <a href = "/forum/forum/{{FORUM.id}}/" style="color: white;margin:auto;"> 
              Enter Forum 
            </a>
          </div>
          {% else %}
          <img src = "/res/forum-icon.png" style="display:block;margin:auto;"></img>
          <span style = "font-size:16px;font-family:'Arial', Times, serif;font-weight:bold;color:#bbbbbb;">
          Forum Is Not Enabled</span>
          {% endif %}
        </div>

        <br style="clear:both"/>
      </div>
{% if ROOT %}
    </div>
{% endif %}
